<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/operateTag" prefix="o"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>收益查询</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="/page/head.jsp"></jsp:include>
<script type="text/javascript">
		
		$(document).ready(function(){

			$('#mgrTable').datagrid({
		       			height: 500,
				        pageSize: 20,//每页显示的记录条数，默认为10  
				        pageList: [10,15,20],//可以设置每页记录条数的列表
						nowrap: true,
		        		border: true,  
						striped: true,
						collapsible: false,
						url:path + "/redate/list.do",
						sortName: 'id',
						sortOrder: 'asc',
						remoteSort: false,
						idField:'id',
						pagination:true,
						rownumbers:true
					});
					var p = $('#mgrTable').datagrid('getPager');
					$(p).pagination({   
				        beforePageText: '第',//页数文本框前显示的汉字  
				        afterPageText: '页    共  {pages} 页',
				        displayMsg: '当前显示  {from} - {to} 条记录   共  {total} 条记录'
				    });
					
				});
		//根据条件进行模糊查询
		function search(){
			var timeStart = $('#timeStart').datebox('getValue');
			var timeEnd = $('#timeEnd').datebox('getValue');
			$('#mgrTable').datagrid('reload',{timeStart:timeStart,timeEnd:timeEnd});
		}
		
		function clean(){
			$('#timeStart').datebox('setValue','');
			$('#timeEnd').datebox('setValue','');
		}
		
	</script>

</head>

<body>
	<div class="right">
		<h1>
			<b>收益查询</b><span><img src="<%=basePath%>images/right_h1bg2.jpg" width="3" height="29" /></span>
		</h1>
		<div class="ri_main">
			<table width="90%" border="0" cellspacing="0" cellpadding="4">
				<tr>
					<td style="vertical-align: middle;">
						<label>收益时间：</label>
						<input class="easyui-datebox" type="text" name="timeStart" id="timeStart" />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>到</label>&nbsp;&nbsp;&nbsp;&nbsp;
						<input class="easyui-datebox" type="text" name="timeEnd" id="timeEnd" />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" onclick="search()" value="查询" />
						<input type="button" onclick="clean()" value="清除" />
						<input type="button" onclick="" value="返利钱包操作" />
					</td>
				</tr>
			</table>
			<table id="mgrTable">
				<thead>
		 			<tr>
		 				<th field="ck" checkbox="true"></th>
						<th field="startName" width="200">返利商家</th>
		 				<th field="type" width="150">返利类型</th>
						<th field="amount" width="150">返利额度</th>
						<th field="rebateTime" width="150">返利时间</th>
		 			</tr>
		 		</thead>
			</table>
		</div>
	</div>
</body>
</html>
